package com.car.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.car.entity.User;
import com.car.service.UserService;

@RestController
public class UserConsumer {
	
	@Autowired
	UserService userService;
	
	@Value("${server.port}")
	String port;
	
	@RequestMapping("/h5Logins")
	public User sayHi(@RequestParam("phone") String phone,@RequestParam("pwd") String pwd){
		System.out.println(port);
		return userService.logins(phone, pwd);
	}

}